package com.campus.mapper;

import com.campus.pojo.entity.CuisineType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CuisineTypeMapper {
    /**
     * 查询所有菜系
     * @return
     */
    @Select("select * from cuisine_type")
    List<CuisineType> getCuisineTypeList();

    /**
     * 根据菜系ID查询菜系名称
     * @param cuisineType
     * @return
     */
    @Select("select * from cuisine_type where id = #{cuisineType}")
    CuisineType getCuisineTypeName(Integer cuisineType);
}
